@echo off

echo Try to kill the current process of WVP
for /f "tokens=5" %%i in ('netstat -ano ^| findstr "0.0.0.0:%wvp的HTTP端口%"') do if %%i gtr 0 taskkill /f /pid %%i

echo Wait to start WVP
timeout /t 5
cd %wvp安装目录%
title WVP
chcp 65001
java -jar wvp.jar
